from django.urls import path
from .dept_view import DeptView, DeptOptionsView, DeptFormView

urlpatterns = [
    # 部门管理
    path('', DeptView.as_view(), name='dept_list'),
    path('/<int:id>', DeptView.as_view(), name='dept_detail'),
    
    # 部门下拉选项
    path('/options', DeptOptionsView.as_view(), name='dept_options'),
    
    # 部门表单数据
    path('/<int:id>/form', DeptFormView.as_view(), name='dept_form'),
]
